package lambda;

import java.io.File;
import java.io.FileFilter;

public class LambdaDemo_1 {
    public static void main(String[] args) {
        FileFilter filter = new FileFilter() {
            public boolean accept(File file) {
                return file.getName().contains("F");
            }
        };

        FileFilter filter1 = f -> f.getName().contains("F");

    }
}
